package Multithread;

public class MultiThreadLoop implements Runnable {
	public void run(){
		for (int i=0; i<10; i++){
			System.out.println(" i = " + i);
			try{
				Thread.sleep((long) (Math.random() * 1000));
			}catch (InterruptedException e){
				
			}
		}
		System.out.println("DONE !");
	}
	
	public static void main(String args[]){
		MultiThreadLoop mtl = new MultiThreadLoop();
		Thread t = new Thread(mtl);
		t.start();
		System.out.println("Exit from Main Thread");
	}
}
